<!DOCTYPE html>
<html>

<head>
<meta charset="utf-8">
<meta name="viewport"
	content="width=device-width, initial-scale=1,maximum-scale=1,user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<title>login</title>

<script type="text/javascript" src="plus.js"></script>
<style>
html, body {
	background-color: #efeff4;
}

h5 {
	margin: 5px 7px;
}

.m-footer {
	height: 70px;
	margin-top: -70px;
	width: 100%;
	text-align: center;
}
</style>

</head>

<body>
	<div id="wrap">
		<div id="main">
			<header>
				<h1>
					<span>测试页面</span>
				</h1>
			</header>
			<div>
				<button type="button" id="btnLogin" onclick="doTest()">
					<span>登录</span>
				</button>
			</div>
		</div>
	</div>
</body>

<script>
	plus.plusReady(function() {
		console.log("plusReady");
	});

	function doTest() {
		plus.bridge.exec("test", "doToast", "test", function() {
			console.log("doToast执行成功！");
		}, function() {
			console.log("doToast执行失败！");
		}, true);
	}

	function callForJava(data) {
		try {
			console.log("data: " + data);
			//var param = JSON.parse(data);
			//console.log("param: " + param);
		} catch (e) {
			console.log(e);
		}

	}
</script>

</html>